#ifndef CONFIG_H
#define CONFIG_H

#include <string>

struct Config {
	std::string file;
	std::string qq;
	std::string nick;
	std::string monitorGroup;
	std::string containsString;
	std::string postMsgUrl;
	std::string postMsgHost;
	int			postMsgPort;	
	std::string postMsgPath;
	int			serverPort;
};

#ifdef CONFIG_CPP
Config config;
#else
extern Config config;
#endif

bool readConfig(const std::string& directory, const std::string& qq, const std::string& nick);

#endif // !CONFIG_H
